#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void func()
{
    char* p = (char*)malloc(1024*1024*500); 
    strcpy(p, "123");
    free(p);
    p = NULL;
    //p error
    strcpy(p, "linux66");
}

int main()
{
    func();
    printf("linux66\n");
    return 0;
}
